package parkshop.pmcourse.utils;

import java.util.Calendar;
import java.util.Date;

import org.junit.Test;

public class DateUtil {
	

	public static Date getIntervalDate(Date date,int dateType,int numbers) { 
		Calendar calendar = Calendar.getInstance();  
		calendar.setTime(date);  
		calendar.add(dateType, numbers);  
		date = calendar.getTime();  
		return date;  
	}

}
